package com.wxltsoft.dataobjects;

public class WorkflowActionDO {

	private Integer wfId;

	private Integer actId;

	private String actName;

	private Integer pointX;

	private Integer pointY;

	private String actRoles;

	private Integer isEndProcess;
	
	private Integer autoNext;
	
	private Integer autoOptionId;

	public WorkflowActionDO() {
	}

	public WorkflowActionDO(Integer wfId, Integer actId, String actName,
			Integer pointX, Integer pointY, String actRoles,
			Integer isEndProcess) {
		this.wfId = wfId;
		this.actId = actId;
		this.actName = actName;
		this.pointX = pointX;
		this.pointY = pointY;
		this.actRoles = actRoles;
		this.isEndProcess = isEndProcess;
	}

	public Integer getWfId() {
		return wfId;
	}

	public void setWfId(Integer wfId) {
		this.wfId = wfId;
	}

	public Integer getActId() {
		return actId;
	}

	public void setActId(Integer actId) {
		this.actId = actId;
	}

	public String getActName() {
		return actName;
	}

	public void setActName(String actName) {
		this.actName = actName;
	}

	public Integer getPointX() {
		return pointX;
	}

	public void setPointX(Integer pointX) {
		this.pointX = pointX;
	}

	public Integer getPointY() {
		return pointY;
	}

	public void setPointY(Integer pointY) {
		this.pointY = pointY;
	}

	public String getActRoles() {
		return actRoles;
	}

	public void setActRoles(String actRoles) {
		this.actRoles = actRoles;
	}

	public Integer getIsEndProcess() {
		return isEndProcess;
	}

	public void setIsEndProcess(Integer isEndProcess) {
		this.isEndProcess = isEndProcess;
	}

	public Integer getAutoNext() {
		return autoNext;
	}

	public void setAutoNext(Integer autoNext) {
		this.autoNext = autoNext;
	}

	public Integer getAutoOptionId() {
		return autoOptionId;
	}

	public void setAutoOptionId(Integer autoOptionId) {
		this.autoOptionId = autoOptionId;
	}
	
	public boolean isAutoNext() {
		return this.autoNext != null && this.autoNext == 1 && this.autoOptionId != null;
	}

}
